using namespace std;
class Connections{
	//
	// This class takes care of connections. It's the layer between the network service and the
	// players layer. 
	//
	//
	
	public:
	//constructor
	Connections();
	//deconstructor
	//checkt op veranderingen en geeft pointer naar client weer die geholpen moet worden
	int changed() const;
	//nieuwe client connectie
	void new_client();
	int numberofclients()const;
	int clientid()const;
	string whois()const;
	void changename(string _name);
	private:
	int nrofclients;
	int clientnr;

	struct connection{
		bool used;				//says wether client is still active or not, when false, this can be used again by another client.
		string name;			//nickname connector
		int nr;		 			//number of connector
		string message;			//message from a client to a client / from server to server
		bool change; 			//bool wether something changed yet
		char * cursor;			//pointer to cursor
	};
	connection **t; // tabel met pointers naar iedere knoop apart.
};
